
from pydantic import BaseModel
from fastapi import HTTPException


class Response(BaseModel):
    code: int = 200
    msg: str = ""
    data: dict = {}


class HttpException(HTTPException):
    def __init__(self, code: int, msg: str):
        raise HTTPException(status_code=code, detail=msg)
